package com.modulemanager.services

import com.libnetwork.httpservice.HttpService
import com.libnetwork.models.apiresult.APIResult
import io.reactivex.rxjava3.core.Single
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.Query

interface ModuleService {
    @FormUrlEncoded
    @GET("/environment/pageValue")
    fun pageValue(
        @Query("moduleType") moduleType: String,
        @Query("moduleId") moduleId: String?,
        @Query("pageType") pageType: String,
        @Query("pageId") pageId: String?,
    ): Single<APIResult<Map<String, Any>>>
}

object ModuleAPI :
    ModuleService by HttpService.instance.retrofit.create(ModuleService::class.java)